package com.telecom.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 出入明细表
 * @TableName ac_in_out_record
 */
@TableName(value ="ac_in_out_record")
@Data
public class AcInOutRecord implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 工号
     */
    private String jobNumber;

    /**
     * 电话
     */
    private String phone;

    /**
     * 性别
     */
    private String sex;

    /**
     * 补贴余额
     */
    private BigDecimal subsidyBalance;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 通过时间
     */
    private String passTime;

    /**
     * 证件类型(按字典动态展示)
     */
    private String cardType;

    /**
     * 证件号
     */
    private String cardNo;

    /**
     * 证件类型描述
     */
    private String cardDescribe;

    /**
     * 人员卡号
     */
    private String personnelCardNo;

    /**
     * 人员类型(按字典动态展示)
     */
    private String personnelType;

    /**
     * 人员类型名称
     */
    private String personnelTypeName;

    /**
     * 区域id
     */
    private Long areaId;

    /**
     * 区域名称
     */
    private String areaName;

    /**
     * 设备记录时间
     */
    private String recordTime;

    /**
     * 门禁编号
     */
    private String accessControlNo;

    /**
     * 门禁名称
     */
    private String accessControlName;

    /**
     * 门禁位置
     */
    private String accessControlPosition;

    /**
     * 出入类型(1:入；2:出)
     */
    private String typeOfAccess;

    /**
     * 开门方式(0:人脸识别；1：刷卡 按字典表动态展示)
     */
    private String openType;

    /**
     * 结果(成功或者失败)
     */
    private String openResult;

    /**
     * 抓取图片
     */
    private String grabPic;

    /**
     * 登记图片
     */
    private String loginPic;

    /**
     * 出入类型描述
     */
    private String typeOfAccessName;

    /**
     * 开门方式描述 
     */
    private String openTypeDescribe;

    /**
     * 登录图片url 
     */
    private String facePath;

    /**
     * 人员所属组织id
     */
    private Long organId;

    /**
     * 人员所属组织名称
     */
    private String organName;

    /**
     * 园区名称
     */
    private String parkName;

    /**
     * 通过状态
     */
    private String passStatus;

    /**
     * 禁止原因 
     */
    private String denyReason;

    /**
     * 状态（0不删除1删除）
     */
    private String status;

    /**
     * 创建人id
     */
    private Long creatorId;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改人id
     */
    private Long updaterId;

    /**
     * 修改人
     */
    private String updater;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 所属园区编码
     */
    private String parkCode;

    /**
     * 门禁点id
     */
    private Long accessControlPositionId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AcInOutRecord other = (AcInOutRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getJobNumber() == null ? other.getJobNumber() == null : this.getJobNumber().equals(other.getJobNumber()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getSubsidyBalance() == null ? other.getSubsidyBalance() == null : this.getSubsidyBalance().equals(other.getSubsidyBalance()))
            && (this.getBalance() == null ? other.getBalance() == null : this.getBalance().equals(other.getBalance()))
            && (this.getPassTime() == null ? other.getPassTime() == null : this.getPassTime().equals(other.getPassTime()))
            && (this.getCardType() == null ? other.getCardType() == null : this.getCardType().equals(other.getCardType()))
            && (this.getCardNo() == null ? other.getCardNo() == null : this.getCardNo().equals(other.getCardNo()))
            && (this.getCardDescribe() == null ? other.getCardDescribe() == null : this.getCardDescribe().equals(other.getCardDescribe()))
            && (this.getPersonnelCardNo() == null ? other.getPersonnelCardNo() == null : this.getPersonnelCardNo().equals(other.getPersonnelCardNo()))
            && (this.getPersonnelType() == null ? other.getPersonnelType() == null : this.getPersonnelType().equals(other.getPersonnelType()))
            && (this.getPersonnelTypeName() == null ? other.getPersonnelTypeName() == null : this.getPersonnelTypeName().equals(other.getPersonnelTypeName()))
            && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(other.getAreaId()))
            && (this.getAreaName() == null ? other.getAreaName() == null : this.getAreaName().equals(other.getAreaName()))
            && (this.getRecordTime() == null ? other.getRecordTime() == null : this.getRecordTime().equals(other.getRecordTime()))
            && (this.getAccessControlNo() == null ? other.getAccessControlNo() == null : this.getAccessControlNo().equals(other.getAccessControlNo()))
            && (this.getAccessControlName() == null ? other.getAccessControlName() == null : this.getAccessControlName().equals(other.getAccessControlName()))
            && (this.getAccessControlPosition() == null ? other.getAccessControlPosition() == null : this.getAccessControlPosition().equals(other.getAccessControlPosition()))
            && (this.getTypeOfAccess() == null ? other.getTypeOfAccess() == null : this.getTypeOfAccess().equals(other.getTypeOfAccess()))
            && (this.getOpenType() == null ? other.getOpenType() == null : this.getOpenType().equals(other.getOpenType()))
            && (this.getOpenResult() == null ? other.getOpenResult() == null : this.getOpenResult().equals(other.getOpenResult()))
            && (this.getGrabPic() == null ? other.getGrabPic() == null : this.getGrabPic().equals(other.getGrabPic()))
            && (this.getLoginPic() == null ? other.getLoginPic() == null : this.getLoginPic().equals(other.getLoginPic()))
            && (this.getTypeOfAccessName() == null ? other.getTypeOfAccessName() == null : this.getTypeOfAccessName().equals(other.getTypeOfAccessName()))
            && (this.getOpenTypeDescribe() == null ? other.getOpenTypeDescribe() == null : this.getOpenTypeDescribe().equals(other.getOpenTypeDescribe()))
            && (this.getFacePath() == null ? other.getFacePath() == null : this.getFacePath().equals(other.getFacePath()))
            && (this.getOrganId() == null ? other.getOrganId() == null : this.getOrganId().equals(other.getOrganId()))
            && (this.getOrganName() == null ? other.getOrganName() == null : this.getOrganName().equals(other.getOrganName()))
            && (this.getParkName() == null ? other.getParkName() == null : this.getParkName().equals(other.getParkName()))
            && (this.getPassStatus() == null ? other.getPassStatus() == null : this.getPassStatus().equals(other.getPassStatus()))
            && (this.getDenyReason() == null ? other.getDenyReason() == null : this.getDenyReason().equals(other.getDenyReason()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreatorId() == null ? other.getCreatorId() == null : this.getCreatorId().equals(other.getCreatorId()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdaterId() == null ? other.getUpdaterId() == null : this.getUpdaterId().equals(other.getUpdaterId()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getParkCode() == null ? other.getParkCode() == null : this.getParkCode().equals(other.getParkCode()))
            && (this.getAccessControlPositionId() == null ? other.getAccessControlPositionId() == null : this.getAccessControlPositionId().equals(other.getAccessControlPositionId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getJobNumber() == null) ? 0 : getJobNumber().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getSubsidyBalance() == null) ? 0 : getSubsidyBalance().hashCode());
        result = prime * result + ((getBalance() == null) ? 0 : getBalance().hashCode());
        result = prime * result + ((getPassTime() == null) ? 0 : getPassTime().hashCode());
        result = prime * result + ((getCardType() == null) ? 0 : getCardType().hashCode());
        result = prime * result + ((getCardNo() == null) ? 0 : getCardNo().hashCode());
        result = prime * result + ((getCardDescribe() == null) ? 0 : getCardDescribe().hashCode());
        result = prime * result + ((getPersonnelCardNo() == null) ? 0 : getPersonnelCardNo().hashCode());
        result = prime * result + ((getPersonnelType() == null) ? 0 : getPersonnelType().hashCode());
        result = prime * result + ((getPersonnelTypeName() == null) ? 0 : getPersonnelTypeName().hashCode());
        result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
        result = prime * result + ((getAreaName() == null) ? 0 : getAreaName().hashCode());
        result = prime * result + ((getRecordTime() == null) ? 0 : getRecordTime().hashCode());
        result = prime * result + ((getAccessControlNo() == null) ? 0 : getAccessControlNo().hashCode());
        result = prime * result + ((getAccessControlName() == null) ? 0 : getAccessControlName().hashCode());
        result = prime * result + ((getAccessControlPosition() == null) ? 0 : getAccessControlPosition().hashCode());
        result = prime * result + ((getTypeOfAccess() == null) ? 0 : getTypeOfAccess().hashCode());
        result = prime * result + ((getOpenType() == null) ? 0 : getOpenType().hashCode());
        result = prime * result + ((getOpenResult() == null) ? 0 : getOpenResult().hashCode());
        result = prime * result + ((getGrabPic() == null) ? 0 : getGrabPic().hashCode());
        result = prime * result + ((getLoginPic() == null) ? 0 : getLoginPic().hashCode());
        result = prime * result + ((getTypeOfAccessName() == null) ? 0 : getTypeOfAccessName().hashCode());
        result = prime * result + ((getOpenTypeDescribe() == null) ? 0 : getOpenTypeDescribe().hashCode());
        result = prime * result + ((getFacePath() == null) ? 0 : getFacePath().hashCode());
        result = prime * result + ((getOrganId() == null) ? 0 : getOrganId().hashCode());
        result = prime * result + ((getOrganName() == null) ? 0 : getOrganName().hashCode());
        result = prime * result + ((getParkName() == null) ? 0 : getParkName().hashCode());
        result = prime * result + ((getPassStatus() == null) ? 0 : getPassStatus().hashCode());
        result = prime * result + ((getDenyReason() == null) ? 0 : getDenyReason().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreatorId() == null) ? 0 : getCreatorId().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdaterId() == null) ? 0 : getUpdaterId().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getParkCode() == null) ? 0 : getParkCode().hashCode());
        result = prime * result + ((getAccessControlPositionId() == null) ? 0 : getAccessControlPositionId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", jobNumber=").append(jobNumber);
        sb.append(", phone=").append(phone);
        sb.append(", sex=").append(sex);
        sb.append(", subsidyBalance=").append(subsidyBalance);
        sb.append(", balance=").append(balance);
        sb.append(", passTime=").append(passTime);
        sb.append(", cardType=").append(cardType);
        sb.append(", cardNo=").append(cardNo);
        sb.append(", cardDescribe=").append(cardDescribe);
        sb.append(", personnelCardNo=").append(personnelCardNo);
        sb.append(", personnelType=").append(personnelType);
        sb.append(", personnelTypeName=").append(personnelTypeName);
        sb.append(", areaId=").append(areaId);
        sb.append(", areaName=").append(areaName);
        sb.append(", recordTime=").append(recordTime);
        sb.append(", accessControlNo=").append(accessControlNo);
        sb.append(", accessControlName=").append(accessControlName);
        sb.append(", accessControlPosition=").append(accessControlPosition);
        sb.append(", typeOfAccess=").append(typeOfAccess);
        sb.append(", openType=").append(openType);
        sb.append(", openResult=").append(openResult);
        sb.append(", grabPic=").append(grabPic);
        sb.append(", loginPic=").append(loginPic);
        sb.append(", typeOfAccessName=").append(typeOfAccessName);
        sb.append(", openTypeDescribe=").append(openTypeDescribe);
        sb.append(", facePath=").append(facePath);
        sb.append(", organId=").append(organId);
        sb.append(", organName=").append(organName);
        sb.append(", parkName=").append(parkName);
        sb.append(", passStatus=").append(passStatus);
        sb.append(", denyReason=").append(denyReason);
        sb.append(", status=").append(status);
        sb.append(", creatorId=").append(creatorId);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", updaterId=").append(updaterId);
        sb.append(", updater=").append(updater);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", parkCode=").append(parkCode);
        sb.append(", accessControlPositionId=").append(accessControlPositionId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}